package com.example.birdfriends.pojo.user;


import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

// 注册、登录所需的用户数据
public class UserForm {
    public void print() {
        System.out.println("UserForm{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", repeatedPwd='" + repeatedPwd + '\'' +
                ", email='" + email + '\'' +
                ", code='" + code + '\'' +
                '}');
    }

    @NotBlank
    private String userName;
    @NotBlank
    private String password;
    @NotBlank
    private String repeatedPwd;
    @Email
    private String email;
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setRepeatedPwd(String repeatedPwd) {
        this.repeatedPwd = repeatedPwd;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }

    public String getRepeatedPwd() {
        return repeatedPwd;
    }

    public String getEmail() {
        return email;
    }
}
